package com.example.headfirstprojectdemo.StrategyPattern;

/**
 * 模型鸭
 */
public class ModelDuck extends Duck {
    public ModelDuck(){
        this.display();
        flyBehaviour = new FlyNoWay();
        quackBehaviour = new Quack();
    }
    @Override
    public void display() {
        System.out.println("Hello!EveryOne ,I'M modelDuck。");
    }
}
